﻿using BepInEx.Configuration;

namespace TheWorldOfKongfuEasyMod;

public class Setting
{
    public ConfigEntry<bool> _001isEAPlayer { get; private set; }
    public ConfigEntry<bool> _004isAutoClickDetail { get; private set; }
    public ConfigEntry<bool> _005isFixThroughSkill { get; private set; }
    public ConfigEntry<float> _006fixThroughSkillDistance { get; private set; }
    public ConfigEntry<bool> _007isCreateWuGong10StarLimit { get; private set; }
    public ConfigEntry<int> _008createWuGongLevelLimit { get; private set; }
    public ConfigEntry<int> _009multipleTalentValue { get; private set; }
    public ConfigEntry<float> _010multipleCharacterExp { get; private set; }
    public ConfigEntry<float> _011multipleWuGongExp { get; private set; }
    public ConfigEntry<bool> _012isRefreshAllMine{ get; private set; }
    public ConfigEntry<int> _013stoneNumMin{ get; private set; }
    public ConfigEntry<int> _014stoneNumMax{ get; private set; }
    public void Init(ConfigFile config)
    {
        this._001isEAPlayer = config.Bind("菜园套", 
            "是否获得菜园套",
            false,
            "是否开局获得菜园套");
        this._005isFixThroughSkill = config.Bind("贯穿类自创武功范围", 
            "是否修复贯穿类自创武功2格范围",
            true,
            "");
        this._006fixThroughSkillDistance = config.Bind("贯穿类自创武功范围", 
            "修复贯穿类自创武功2格范围",
            5.0f,
            "");
        this._004isAutoClickDetail = config.Bind("UI", 
            "单击物品显示详情",
            false,
            "");    
        this._007isCreateWuGong10StarLimit = config.Bind("自创武功上限", 
            "自创武功10星上限",
            false,
            ""); 
        this._008createWuGongLevelLimit = config.Bind("自创武功上限", 
            "自创武功等级上限",
            9,
            "");
        this._009multipleTalentValue = config.Bind("升级相关", 
            "人物升级获得的天赋点倍数",
            1,
            "");   
        this._010multipleCharacterExp = config.Bind("升级相关", 
            "人物经验倍数",
            1.0f,
            "");    
        this._011multipleWuGongExp = config.Bind("升级相关", 
            "武功经验倍数",
            1.0f,
            "");              
        this._012isRefreshAllMine = config.Bind("矿石", 
            "是否必定刷新石头",
            true,
            "");         
        this._013stoneNumMin = config.Bind("矿石", 
            "刷新石头数最小值",
            5,
            "");       
        this._014stoneNumMax = config.Bind("矿石", 
            "刷新石头数最大值",
            10,
            ""); 
    }
}